home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 June
/
PCWorld_2007-06_cd.bin
/
v cisle
/
tclock
/
tclocklight-040702-3.exe
/
source
/
timer
/
tctimer.mak
< prev
next >
Wrap
Makefile
|
2004-05-09
|
3KB
|
124 lines
# ------------------------------------------
# tctimer.mak
#-------------------------------------------
!IFNDEF SRCDIR
SRCDIR=.
!ENDIF
!IFNDEF COMMONDIR
COMMONDIR=..\common
!ENDIF
EXEFILE=..\out\tctimer.exe
LANGID=0x411
RCFILE=$(SRCDIR)\tctimer.rc
RESFILE=tctimer.res
TDSFILE=..\out\tctimer.tds
TCPROPH=$(SRCDIR)\tctimer.h $(SRCDIR)\resource.h $(COMMONDIR)\common.h
COMMONH=$(COMMONDIR)\common.h
OBJS=timermain.obj timerdlg.obj timer.obj\
tclang.obj langcode.obj selectfile.obj\
playfile.obj soundselect.obj\
utl.obj exec.obj reg.obj font.obj
LIBS=kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib\
shell32.lib winmm.lib comctl32.lib
all: $(EXEFILE)
# Visual C++
!IFDEF _NMAKE_VER
CC=cl
LINK=link
RC=rc
RCOPT=/l $(LANGID) /fo
!IFDEF NODEFAULTLIB
COPT=/c /W3 /O2 /Oi /DNODEFAULTLIB /Fo
LOPT=/SUBSYSTEM:WINDOWS /NODEFAULTLIB /OPT:NOWIN98
$(EXEFILE): $(OBJS) nodeflib.obj $(RESFILE)
$(LINK) $(LOPT) $(OBJS) nodeflib.obj $(RESFILE) $(LIBS) /OUT:$@
!ELSE
COPT=/c /W3 /O2 /Oi /Fo
LOPT=/SUBSYSTEM:WINDOWS /OPT:NOWIN98
$(EXEFILE): $(OBJS) $(RESFILE)
$(LINK) $(LOPT) $(OBJS) $(RESFILE) $(LIBS) /OUT:$@
!ENDIF
# Borland C++ Compiler
!ELSE
CC=bcc32
LINK=ilink32
RC=brc32
RCOPT=-r -32 -fo
!IFDEF NODEFAULTLIB
COPT=-c -w -w-8057 -O2 -Oi -d -DNODEFAULTLIB -tW -o
LOPT=/c /C /Gn /x
$(EXEFILE): $(OBJS) nodeflib.obj bccexe.pat $(RESFILE)
$(LINK) $(LOPT) /Tpe /aa $(OBJS) nodeflib.obj bccexe.pat,$@,,$(LIBS),,$(RESFILE)
del $(TDSFILE)
bccexe.pat: $(COMMONDIR)\bccexe.nas
nasmw -f obj -o $@ $(COMMONDIR)\bccexe.nas
!ELSE
COPT=-c -w -w-8057 -O2 -Oi -d -tW -o
LOPT=/c /C /Gn /x
$(EXEFILE): $(OBJS) $(RESFILE)
$(LINK) $(LOPT) /Tpe /aa $(OBJS) c0w32.obj,$@,,$(LIBS) cw32.lib,,$(RESFILE)
del $(TDSFILE)
!ENDIF
!ENDIF
# obj files
timermain.obj: $(SRCDIR)\main.c $(TCPROPH)
$(CC) $(COPT)$@ $(SRCDIR)\main.c
timerdlg.obj: $(SRCDIR)\dialog.c $(TCPROPH)
$(CC) $(COPT)$@ $(SRCDIR)\dialog.c
timer.obj: $(SRCDIR)\timer.c $(TCPROPH)
$(CC) $(COPT)$@ $(SRCDIR)\timer.c
# common obj files
tclang.obj: $(COMMONDIR)\tclang.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\tclang.c
langcode.obj: $(COMMONDIR)\langcode.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\langcode.c
selectfile.obj: $(COMMONDIR)\selectfile.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\selectfile.c
playfile.obj: $(COMMONDIR)\playfile.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\playfile.c
soundselect.obj: $(COMMONDIR)\soundselect.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\soundselect.c
utl.obj: $(COMMONDIR)\utl.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\utl.c
exec.obj: $(COMMONDIR)\exec.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\exec.c
reg.obj: $(COMMONDIR)\reg.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\reg.c
font.obj: $(COMMONDIR)\font.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\font.c
nodeflib.obj: $(COMMONDIR)\nodeflib.c $(COMMONH)
$(CC) $(COPT)$@ $(COMMONDIR)\nodeflib.c
# res file
$(RESFILE): $(RCFILE)
$(RC) $(RCOPT)$@ $(RCFILE)